package hcn.protocol.brandnew.dengji.jianchayuyue;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import ctd.util.xml.jaxb.DateTimeAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 检查项目指定日期的可预约时间查询-请求消息 - ODS_02070009
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "MsgBody")
@XmlAccessorType(XmlAccessType.FIELD)
public class QueryAppointTimeRequest extends BaseRequest {

    /**
     * 条目
     */
    @XmlElement(name = "Item")
    private Item item;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Item {

        /**
         * 检查申请单号
         */
        @XmlElement(name = "RequestId")
        private String requestId;
        /**
         * 机构代码
         */
        @XmlElement(name = "Organization")
        private String organization;
        /**
         * 检查项目代码
         */
        @XmlElement(name = "ItemCode")
        private String itemCode;
        /**
         * 检查项目名称
         */
        @XmlElement(name = "ItemName")
        private String itemName;
        /**
         * 预约队列
         */
        @XmlElement(name = "AppointsQueue")
        private String appointsQueue;
        /**
         * 号源日期
         */
        @XmlElement(name = "AppointsDate")
        private String appointsDate;
        /**
         * 号源开始时间
         */
        @XmlElement(name = "AppointsStartTime")
        @XmlJavaTypeAdapter(DateTimeAdapter.class)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date appointsStartTime;
        /**
         * 号源结束时间
         */
        @XmlElement(name = "AppointsEndTime")
        private String appointsEndTime;
    }

}
